package com.fc.persistence.core;

public class MongoConfig {
	public static String host;
	public static String dbName;
	public static int minConnectionsPerHost = 1;
	public static int maxConnectionsPerHost = 1;
	public static int heartbeatConnectTimeout = 60 *1000;
	public static int heartbeatSocketTimeout = 5 * 60 * 1000;
	public static String getHost() {
		return host;
	}
	public static void setHost(String host) {
		MongoConfig.host = host;
	}
	public static String getDbName() {
		return dbName;
	}
	public static void setDbName(String dbName) {
		MongoConfig.dbName = dbName;
	}
	public static int getMinConnectionsPerHost() {
		return minConnectionsPerHost;
	}
	public static void setMinConnectionsPerHost(int minConnectionsPerHost) {
		MongoConfig.minConnectionsPerHost = minConnectionsPerHost;
	}
	public static int getMaxConnectionsPerHost() {
		return maxConnectionsPerHost;
	}
	public static void setMaxConnectionsPerHost(int maxConnectionsPerHost) {
		MongoConfig.maxConnectionsPerHost = maxConnectionsPerHost;
	}
	public static int getHeartbeatConnectTimeout() {
		return heartbeatConnectTimeout;
	}
	public static void setHeartbeatConnectTimeout(int heartbeatConnectTimeout) {
		MongoConfig.heartbeatConnectTimeout = heartbeatConnectTimeout;
	}
	public static int getHeartbeatSocketTimeout() {
		return heartbeatSocketTimeout;
	}
	public static void setHeartbeatSocketTimeout(int heartbeatSocketTimeout) {
		MongoConfig.heartbeatSocketTimeout = heartbeatSocketTimeout;
	}
}
